package com.novax.ex.activity.provider.api;

import com.novax.ex.activity.provider.common.ServerName;
import com.novax.ex.common.results.ReturnResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(url = "${remote.otc-service.endpoint}", name = "OtcApi", contextId = "OtcApi")
public interface OtcApi {

    @PostMapping(value = "/v3/manage/otc-user/p2p-count")
    ReturnResult<Long> count(@RequestParam("userId") Long userId, @RequestParam("type") Integer type);

}
